var rule = {
    title: 'basbas',
    host: 'https://app.api.basbas.cc',
    //homeUrl: '/apis/get_category_mov?page=1&region=&year=&type=&lan=',
    detailUrl: '/api.php/app_tv_v1/Video/video_read_detail?id=fyid',
    searchUrl: '/api.php/app_let_v1/Video/video_search?search=**&limit=&page=fypage',
    url: 'https://app.api.basbas.cc/api.php/app_tv_v1/Video/video_movie_list?page=fypage&type=fyfilter',
   filterable: 1,
filter_url: '&city_id={{fl.地区}}&cat_id={{fl.类型}}&type=fyclass',
filter: {
    '1': [{ 'key': '类型', 'name': 'تۈرى', 'value': [{ 'n': 'بارلىق', '0': '' }, { 'n': 'مۇھەببەتلىك', 'v': '14' }, { 'n': 'كومىدىيەلىك', 'v': '84' }, { 'n': 'قورقۇنۇچلۇق', 'v': '87' }, { 'n': 'ھۆججەتلىك', 'v': '236' }, { 'n': 'فانتازىيەلىك', 'v': '222' }, { 'n': 'ھەركەتلىك', 'v': '19' }, { 'n': 'تىراگىدىيەلىك', 'v': '15' }, { 'n': 'ئۇرۇش', 'v': '17' }, { 'n': 'تارىخى', 'v': '16' }, { 'n': 'ئائىلە', 'v': '13' }, { 'n': 'قەدىمى', 'v': '18' },{ 'n': 'باشقىلار', 'v': '88' }] }, { 'key': '地区', 'name': 'رايۇن', 'value': [{ 'n': 'بارلىق', '0': '' }, { 'n': 'جۇڭگۇ', 'v': '90' }, { 'n': 'ئامېرىكا', 'v': '50' }, { 'n': 'ھېندىستان', 'v': '62' }, { 'n': ' ياپۇن كورىيە', 'v': '56' }, { 'n': 'تايلاند', 'v': '55' }, { 'n': 'باشقىلار', 'v': '65' }] }],
     '2': [{ 'key': '类型', 'name': 'تۈرى', 'value': [{ 'n': 'بارلىق', '0': '' }, { 'n': 'مۇھەببەتلىك', 'v': '14' }, { 'n': 'كومىدىيەلىك', 'v': '84' }, { 'n': 'قورقۇنۇچلۇق', 'v': '87' }, { 'n': 'ھۆججەتلىك', 'v': '236' }, { 'n': 'فانتازىيەلىك', 'v': '222' }, { 'n': 'ھەركەتلىك', 'v': '19' }, { 'n': 'تىراگىدىيەلىك', 'v': '15' }, { 'n': 'ئۇرۇش', 'v': '17' }, { 'n': 'تارىخى', 'v': '16' }, { 'n': 'ئائىلە', 'v': '13' }, { 'n': 'قەدىمى', 'v': '18' },{ 'n': 'باشقىلار', 'v': '88' }] }, { 'key': '地区', 'name': 'رايۇن', 'value': [{ 'n': 'بارلىق', '0': '' }, { 'n': 'جۇڭگۇ', 'v': '90' }, { 'n': 'ئامېرىكا', 'v': '50' }, { 'n': 'ھېندىستان', 'v': '62' }, { 'n': ' ياپۇن كورىيە', 'v': '56' }, { 'n': 'تايلاند', 'v': '55' }, { 'n': 'باشقىلار', 'v': '65' }] }],
      '3': [{ 'key': '类型', 'name': 'تۈرى', 'value': [{ 'n': 'بارلىق', '0': '' }, { 'n': 'مۇھەببەتلىك', 'v': '14' }, { 'n': 'كومىدىيەلىك', 'v': '84' }, { 'n': 'قورقۇنۇچلۇق', 'v': '87' }, { 'n': 'ھۆججەتلىك', 'v': '236' }, { 'n': 'فانتازىيەلىك', 'v': '222' }, { 'n': 'ھەركەتلىك', 'v': '19' }, { 'n': 'تىراگىدىيەلىك', 'v': '15' }, { 'n': 'ئۇرۇش', 'v': '17' }, { 'n': 'تارىخى', 'v': '16' }, { 'n': 'ئائىلە', 'v': '13' }, { 'n': 'قەدىمى', 'v': '18' },{ 'n': 'باشقىلار', 'v': '88' }] }, { 'key': '地区', 'name': 'رايۇن', 'value': [{ 'n': 'بارلىق', '0': '' }, { 'n': 'جۇڭگۇ', 'v': '90' }, { 'n': 'ئامېرىكا', 'v': '50' }, { 'n': 'ھېندىستان', 'v': '62' }, { 'n': ' ياپۇن كورىيە', 'v': '56' }, { 'n': 'تايلاند', 'v': '55' }, { 'n': 'باشقىلار', 'v': '65' }] }]
   

},
filter_def: {},
    headers: {
        'User-Agent': 'Mozilla/5.0 (Linux; Android 13; M2012K11AC Build/TKQ1.221114.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/9272 MicroMessenger/8.0.50.2701(0x280032AF) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64'
    },
    timeout: 5000,
    class_name: 'كىنو&قىسىملىق&كارتون&پىروگىرامما&ناخشا',
    class_url: '1&2&3&10&5',
    limit: 5,
    multi: 1,
    searchable: 2,
    play_parse: true,
    lazy: $js.toString(() => {
        print('lllll' + input.split("?")[0]);
        if (input.includes('https')) {
        input = { parse: 1, url: input, js: '' };
        } else if (input.startsWith('wxv')) {
        input = 'https://test.xaklat.cn/play.php?url=' + input;
        input = { parse: 1, url: input, js: '' };
        };
    }),
    double: true,
    //推荐: 'json:data;mov_title;mov_img;mov_cate;id;mov_lang',
    一级: 'json:data.list;title;thumb;describe;vid;cat_name',
    二级: '',
    二级: $js.toString(() => {
        let vodItems = [];
        let html = request(input);
        let json = JSON.parse(html);
        let data = json.data;
        let tilte = data.view.title;
        let img = data.view.thumb;
        let vod_type = data.view.cat_name;
        let area = data.view.content;
        let content = data.view.content;
        let base_vod = {
            vod_id: input,
            vod_name: tilte,
            type_name: vod_type,
            vod_actor: '',
            vod_director: '',
            vod_content: content,
            vod_remarks: content,
            vod_pic: img
        };
        let sites = json.data.view.child_list;
        let currentIndex = 0;
        let d = sites.map(function (it) {
            let _uu = it.url;
            let combinedString = `${currentIndex + 1}$${_uu}`;
            currentIndex++;
            return combinedString;
        });
        vodItems.push(d.join("#")); 
        let vod_play_url = vodItems.join("#");
        base_vod.vod_play_url = vod_play_url;
        let vod_play_from = 'ADR-0997'
        base_vod.vod_play_from = vod_play_from;
        VOD = base_vod;
    }),
    搜索: 'json:data.list;title;thumb;describe;vid;cat_name',
}

